?><?

if(file_exists("grape/settings.php")){
	$nodatabase=false;
}else{
	$nodatabase=true;
}

if(!file_exists("grape/installed")||(filemtime("grape/installed")<filemtime("install.php"))){
  if(file_exists("grape/installed"))unlink("grape/installed");
  include_once("install.php");
  install();
}
if(file_exists("grape/settings.php")){
	require_once("grape/settings.php");
	$nodatabase=false;
}else{
	$nodatabase=true;
}
